<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
    <title>{{ title }}</title>
    <link type="text/css" href="http://embed-bot.appspot.com/css/embed.theme{{ theme_id }}.css" rel="stylesheet" />
    <script src="http://wave-api.appspot.com/public/embed.js" type="text/javascript"></script>
    
    <script type="text/javascript">

    var waveUrl = 'https://wave.google.com/wave/';
    var waveId = '{{ wave_id }}';
    var themeId = {{ theme_id }};
    
    var waveDomain = waveId.split('!');
    if (waveDomain[0] == 'wavesandbox.com') {
      var waveUrl = 'https://wave.google.com/a/wavesandbox.com/';
    }
    
    var themes = [];
    themes[0] = ['#ffffff', '#333333', 'Arial', '10pt']; //standard
    themes[1] = ['#9933ff', '#ffffff', 'Georgia', '11pt']; //grape soda
    themes[2] = ['#99ff99', '#006600', 'Courier', '10pt']; //lotta lime
    themes[3] = ['#333333', '#c5c5c5', 'Arial', '11pt']; //midnight moon
    themes[4] = ['#3366cc', '#ccffff', 'Verdana', '11pt']; //mystic blue
    
    function load() {
      
      if (!themeId) {
        themeId = 0;
      }
      
      waveContainer = new WavePanel(waveUrl);
      var color = themes[themeId][0];
      var fontColor = themes[themeId][1];
      var fontFamily = themes[themeId][2];
      var fontSize = themes[themeId][3];
      waveContainer.setUIConfig(color, fontColor, fontFamily, fontSize);
      waveContainer.loadWave(waveId);
      waveContainer.init(document.getElementById('container'));
    } 
    </script>
    
  </head>
  <body onLoad="load()">
    <div id="wrapper" style="width: {{ width }}px; height: {{ height }}px;">
      <h2>{{ title }}</h2>
      <div id="container"></div>
      <div id="footer" style="margin: 10px 0px 0px 0px; font-size: 10px;">
        This embedded wave is powered by
        <a href="http://embed-bot.appspot.com/about" target="_blank">
        Embed Bot
        </a>
      </div>
    </div>
  </body>
</html>